﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    //1.定义一个图书馆里系统里面的用户类；
    //2.在用户类中定义一个方法输出当前用户对象的信息；然后在主方法调用输出；
    class User
    {
        private string name;
        private char sex;
        private int ID;
        private string address;
        private string bookName;

        public string Name

        {

            get { return this.name; }

            set { this.name = value; }

        }
        public char Sex
        {
            get { return this.sex; }
            set { this.sex = value; }
        }

        public string Address
        {
            get { return this.address; }
            set { this.address = value; }
        }

        public int Id
        {
            get { return this.ID; }
            set { this.ID = value; }
        }

        public string BookName
        {
            get { return this.bookName; }
            set { this.bookName = value; }
        }

        public void Info()
        {
            Console.WriteLine("用户名字:{0}\t性别:{1}\t借书证:{2}\t地址:{3}\t借书名:{4}",this.name,this.sex,this.Id,this.Address,this.BookName);
        }
    }
    


}
